﻿
/* 
 本类由PWMIS 实体类生成工具(Ver 4.1)自动生成
 http://www.pwmis.com/sqlmap
 使用前请先在项目工程中引用 PWMIS.Core.dll
 2012/3/30 17:59:35
*/

using System;
using PWMIS.Common;
using PWMIS.DataMap.Entity;

namespace PrjCmd.Entity
{
    [Serializable()]
    public class Orders : EntityBase
    {
        public Orders()
        {
            TableName = "Orders";
            EntityMap = EntityMapType.Table;
            //IdentityName = "标识字段名";
            IdentityName = "OrderID";

            //PrimaryKeys.Add("主键字段名");
            PrimaryKeys.Add("OrderID");


        }


        protected override void SetFieldNames()
        {
            PropertyNames = new string[] { "OrderID", "CustomerID", "OrderDate", "SumMoney", "Comment", "Finished" };
        }



        /// <summary>
        /// 
        /// </summary>
        public System.Int32 OrderID
        {
            get { return getProperty<System.Int32>("OrderID"); }
            set { setProperty("OrderID", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.Int32 CustomerID
        {
            get { return getProperty<System.Int32>("CustomerID"); }
            set { setProperty("CustomerID", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.DateTime OrderDate
        {
            get { return getProperty<System.DateTime>("OrderDate"); }
            set { setProperty("OrderDate", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.Decimal SumMoney
        {
            get { return getProperty<System.Decimal>("SumMoney"); }
            set { setProperty("SumMoney", value); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.String Comment
        {
            get { return getProperty<System.String>("Comment"); }
            set { setProperty("Comment", value, 300); }
        }

        /// <summary>
        /// 
        /// </summary>
        public System.Boolean Finished
        {
            get { return getProperty<System.Boolean>("Finished"); }
            set { setProperty("Finished", value); }
        }


    }
}
